<!--
 * @Author       : shenqing
 * @desc         : 组件描述
 * @Date         : 2022-10-14 11:41:17
 * @LastEditTime : 2022-10-14 15:44:30
 * @LastEditors  : shenqing
 * @FilePath     : \questionnaire\src\views\home.vue
-->
<template>
    <div class='home-box'>
        <el-button type="primary"
                   @click="toPage('task')">任务管理</el-button>
        <el-button type="primary"
                   @click="toPage('question')">问卷库管理</el-button>
        <el-button type="primary"
                   @click="toPage('addQuestion')">问卷调研新增</el-button>
    </div>
</template>

<script>
export default {
    name: '',
    mixins: [],
    components: {

    },
    props: {

    },
    data () {
        return {

        }
    },
    computed: {

    },
    watch: {

    },
    created () {

    },
    mounted () {

    },
    destroyed () {

    },
    methods: {
        toPage (type) {
            if (type === 'question') {
                this.$router.push({ path: '/question' })
            } else if (type === 'addQuestion') {
                this.$router.push({ path: '/question/add' })
            } else if (type === 'task') {
                this.$router.push({ path: '/task' })
            }
        }
    }
}
</script>
<style scoped lang='stylus'>
.home-box {
}
</style>
